﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <SolidColorBrush x:Key="MainWindowBackground" Color="#FFFFFF"></SolidColorBrush>
    <SolidColorBrush x:Key="LiSABlue" Color="#014B6B"></SolidColorBrush>
    <SolidColorBrush x:Key="LiSALightBlue" Color="#316D87"></SolidColorBrush>
    <SolidColorBrush x:Key="LiSALighterBlue" Color="#3C758D"></SolidColorBrush>
    <SolidColorBrush x:Key="LiSAMediumBlue" Color="#016089"></SolidColorBrush>


    <!-- Main Menu -->
    <Style x:Key="MainMenuBorderStyle" TargetType="Border">
        <Setter Property="HorizontalAlignment" Value="Right"/>
        <Setter Property="VerticalAlignment" Value="Bottom"/>
        <Setter Property="Margin" Value="0,0,0,-1"/>
    </Style>

    <Style x:Key="MainMenuItemContainerStyle" TargetType="ListBoxItem">
        <Setter Property="Padding" Value="0,0,0,0"/>
        <Setter Property="Margin" Value="0,0,0,0"/>
        <Setter Property="BorderThickness" Value="0,0,0,0"/>

        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ListBoxItem">
                    <Grid Name="Content" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
                        <ContentPresenter/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="Content" Property="Background" Value="{StaticResource LiSALighterBlue}"></Setter>
                            <Setter Property="Foreground" Value="White"/>
                            <Setter Property="Cursor" Value="Hand"></Setter>
                        </Trigger>
                        <Trigger Property="IsSelected" Value="True">
                            <Setter TargetName="Content" Property="Background" Value="{StaticResource LiSABlue}"></Setter>
                            <Setter Property="Foreground" Value="White"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="MainMenuListStyle" TargetType="ListBox">
        <Setter Property="Focusable" Value="False"></Setter>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="SelectionMode" Value="Single"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Padding" Value="0,0,0,0"/>
        <Setter Property="ItemContainerStyle" Value="{StaticResource MainMenuItemContainerStyle}"/>
    </Style>


    <Style x:Key="MainMenuItemStyle" TargetType="UserControl">
        <Setter Property="Height" Value="30px"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="Padding" Value="-1"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="Foreground" Value="White"/>
                <Setter Property="Cursor" Value="Hand"/>
            </Trigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="MainMenuItemTextBlockStyle" TargetType="TextBlock">
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="Padding" Value="20, 3, 20, 3"/>
        <Setter Property="FontSize" Value="13"/>
        <Setter Property="FontWeight" Value="Normal"/>
        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="Cursor" Value="Hand"/>
            </Trigger>
        </Style.Triggers>
    </Style>


    <!-- Left Menu -->
    <Style x:Key="LeftMenuStyle" TargetType="DockPanel">
        <Setter Property="Background" Value="{StaticResource LiSABlue}"></Setter>
    </Style>

    <Style x:Key="LeftMenuLiSADefaultStyle" TargetType="TextBlock">
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="MinHeight" Value="30"/>
        <Setter Property="Foreground" Value="Gray"/>
        <Setter Property="FontSize" Value="20"/>
        <Setter Property="FontWeight" Value="DemiBold"></Setter>
    </Style>

    <Style x:Key="LeftMenuLiSADefaultTaglineStyle" TargetType="TextBlock">
        <Setter Property="Margin" Value="0,5,0,20"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="Foreground" Value="#B6B7B7"/>
        <Setter Property="FontSize" Value="14"/>
    </Style>

    <Style x:Key="LeftMenuLiSADefaultImageStyle" TargetType="Image">
        <Setter Property="Source" Value="pack://application:,,,/LiSAClient.WpfClient;component/Resources/Media/Images/LiSA_logo.png"/>
        <Setter Property="Width" Value="64"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="Margin" Value="20,20,20,0"/>
    </Style>

    <Style x:Key="LeftMenuLiSADefaultVersionStyle" TargetType="TextBlock">
        <Setter Property="Margin" Value="0,5,0,20"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="Foreground" Value="#B6B7B7"/>
        <Setter Property="FontSize" Value="10"/>
    </Style>

    <Style x:Key="LeftMenuItemContainerStyle" TargetType="ListBoxItem">
        <Setter Property="OverridesDefaultStyle" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ListBoxItem">
                    <Border Name="Content">
                        <ContentPresenter/>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="Content" Property="Background" Value="{StaticResource LiSALightBlue}"></Setter>
                            <Setter Property="Foreground" Value="White"/>
                            <Setter Property="Cursor" Value="Hand"></Setter>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="LeftMenuListStyle" TargetType="ListBox">
        <Setter Property="BorderThickness" Value="0,3,0,0"/>
        <Setter Property="BorderBrush" Value="#F78A0A"/>
        <Setter Property="Padding" Value="0,20,0,0"></Setter>
        <Setter Property="Background" Value="Transparent"></Setter>
        <Setter Property="HorizontalAlignment" Value="Stretch"></Setter>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"></Setter>
        <Setter Property="ItemContainerStyle" Value="{StaticResource LeftMenuItemContainerStyle}"/>
    </Style>

    <Style x:Key="MenuIconStyle" TargetType="Image">
        <Setter Property="MinHeight" Value="21"/>
        <Setter Property="MinWidth" Value="21"/>
        <Setter Property="Margin" Value="0,5,0,5"/>
        <Setter Property="MaxHeight" Value="21"/>
        <Setter Property="MaxWidth" Value="21"/>
        <Setter Property="Stretch" Value="Uniform"/>
    </Style>

    <Style x:Key="LeftMenuItemBorderStyle" TargetType="Border">
        <Setter Property="Background" Value="{StaticResource LiSABlue}"></Setter>
        <Setter Property="Padding" Value="1, 0, 0, 0"></Setter>
        <Setter Property="Height" Value="50"></Setter>
        <Setter Property="HorizontalAlignment" Value="Stretch"></Setter>
        <Setter Property="VerticalAlignment" Value="Stretch"></Setter>
        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="Background" Value="{StaticResource LiSALightBlue}"></Setter>
                <Setter Property="Cursor" Value="Hand"></Setter>
            </Trigger>
            <DataTrigger Binding="{Binding IsActivated}" Value="True">
                <Setter Property="Background" Value="{StaticResource LiSALightBlue}"></Setter>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="LeftMenuItemTitleStyle" TargetType="TextBlock">
        <Setter Property="Foreground" Value="#FFFFFF"></Setter>
        <Setter Property="VerticalAlignment" Value="Center"></Setter>
        <Setter Property="FontSize" Value="17"></Setter>
        <Setter Property="FontWeight" Value="Normal"></Setter>
        <Setter Property="Padding" Value="7, 0, 0, 0"></Setter>
    </Style>

    <Style x:Key="MenuTitleStyle" TargetType="TextBlock">
        <Setter Property="HorizontalAlignment" Value="Left"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="Margin" Value="10,0,0,0"/>
        <Setter Property="FontSize" Value="14"/>
        <Setter Property="Foreground" Value="White"/>
    </Style>

    <Style x:Key="UtilityMenuGridStyle" TargetType="Grid">
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="Width" Value="40"/>
        <Setter Property="Height" Value="50"/>
        <Setter Property="Background" Value="#ff3D3D3D"/>
    </Style>

    <Style x:Key="UtilityMenuButtonStyle" TargetType="Button">
        <Setter Property="Background" Value="#ff3D3D3D"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="HorizontalAlignment" Value="Stretch"/>
        <Setter Property="VerticalAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Border x:Name="Border" BorderThickness="0" Background="#ff404040">
                        <ContentPresenter Margin="2" HorizontalAlignment="Center" VerticalAlignment="Center"
                                          RecognizesAccessKey="True" />
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsPressed" Value="true">
                            <Setter TargetName="Border" Property="Background" Value="#ff404040" />
                            <Setter TargetName="Border" Property="BorderBrush" Value="#ff404040" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="Cursor" Value="Hand"/>
            </Trigger>
        </Style.Triggers>
    </Style>

    <ItemsPanelTemplate x:Key="MenuItemPanelTemplate">
        <StackPanel Margin="-20,0,0,0" Background="#E1E1E2" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
    </ItemsPanelTemplate>

    <Style x:Key="MenuItemStyle" TargetType="{x:Type MenuItem}">
        <Setter Property="ItemsPanel" Value="{StaticResource MenuItemPanelTemplate}"/>
        <Setter Property="Background" Value="#E1E1E2"/>
        <Setter Property="Foreground" Value="#707071"/>
        <Setter Property="Margin" Value="-3,5"/>
        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="Cursor" Value="Hand"></Setter>
            </Trigger>
        </Style.Triggers>
    </Style>

    <Style TargetType="{x:Type ContextMenu}">
        <Setter Property="ItemsPanel" Value="{StaticResource MenuItemPanelTemplate}"/>
        <Setter Property="Margin" Value="0"/>
        <Setter Property="Padding" Value="0"/>
    </Style>

    <Style x:Key="UtilityMenuContextMenuStyle" TargetType="ContextMenu">
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="ItemsPanel" Value="{StaticResource MenuItemPanelTemplate}"/>
        <Setter Property="BorderThickness" Value="1"></Setter>
        <Setter Property="BorderBrush" Value="#D4D4D4"></Setter>
        <Setter Property="Background" Value="#E1E1E2"></Setter>
        <Style.Resources>
            <Style TargetType="{x:Type Label}">
                <Setter Property="FontSize" Value="14"></Setter>
                <Setter Property="Foreground" Value="#707071"></Setter>
            </Style>
        </Style.Resources>
    </Style>
    
    <Style x:Key="UserActionsMenuStyle" TargetType="{x:Type Button}">
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="BorderThickness" Value="0,0,0,0"></Setter>
        <Setter Property="FontSize" Value="11"></Setter>
        <Setter Property="Background" Value="{StaticResource MainWindowBackground}"></Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Border x:Name="Border" BorderThickness="0" Background="{StaticResource MainWindowBackground}">
                        <ContentPresenter Margin="2" HorizontalAlignment="Center" VerticalAlignment="Center"
                                          RecognizesAccessKey="True" />
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsPressed" Value="true">
                            <Setter TargetName="Border" Property="Background" Value="{StaticResource MainWindowBackground}" />
                            <Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource MainWindowBackground}" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="Cursor" Value="Hand"></Setter>
            </Trigger>
        </Style.Triggers>
        <Style.Resources>
            <Style TargetType="{x:Type Label}">
                <Setter Property="FontSize" Value="10"></Setter>
                <Setter Property="Foreground" Value="#B2B2B2"></Setter>
                <Setter Property="Margin" Value="0,-3,0,0"></Setter>
            </Style>
        </Style.Resources>
    </Style>



    <ItemsPanelTemplate x:Key="UserMenuItemPanelTemplate">
        <StackPanel Margin="-20,0,0,0" Background="#FFFFFF" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
    </ItemsPanelTemplate>

    <Style x:Key="UserMenuItemStyle" TargetType="{x:Type MenuItem}">
        <Setter Property="ItemsPanel" Value="{StaticResource UserMenuItemPanelTemplate}"/>
        <Setter Property="Background" Value="#FFFFFF"/>
        <Setter Property="Foreground" Value="#707071"/>
        <Setter Property="Margin" Value="-3,3"/>
        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="Cursor" Value="Hand"></Setter>
            </Trigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="UserActionsContextMenu" TargetType="ContextMenu">
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="ItemsPanel" Value="{StaticResource UserMenuItemPanelTemplate}"/>
        <Setter Property="BorderThickness" Value="1"></Setter>
        <Setter Property="BorderBrush" Value="#D4D4D4"></Setter>
        <Setter Property="Background" Value="#FFFFFF"></Setter>
        <Style.Resources>
            <Style TargetType="{x:Type Label}">
                <Setter Property="FontSize" Value="14"></Setter>
                <Setter Property="Foreground" Value="#707071"></Setter>
            </Style>
        </Style.Resources>
    </Style>


    <Style x:Key="VerticalStrutStyle" TargetType="Border">
        <Setter Property="VerticalAlignment" Value="Stretch" />
        <Setter Property="Margin" Value="5,0" />
        <Setter Property="BorderBrush" Value="#C6C6C6" />
        <Setter Property="BorderThickness" Value="0.6" />
    </Style>
    <Style x:Key="TopMenuImageBorderStyle" TargetType="Border">
        <Setter Property="Focusable" Value="True"/>
        <Style.Triggers>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsMouseOver" Value="True"/>
                    <Condition Property="IsEnabled" Value="True"/>
                </MultiTrigger.Conditions>
                <MultiTrigger.Setters>
                    <Setter Property="Background" Value="#E5E5E5" />
                    <Setter Property="Cursor" Value="Hand"/>
                </MultiTrigger.Setters>
            </MultiTrigger>
            <Trigger Property="IsEnabled" Value="False">
                <Setter Property="Opacity" Value="0.5" />
            </Trigger>
        </Style.Triggers>
    </Style>
    <Style x:Key="TopMenu2ButtonStyle" TargetType="Button">
        <Setter Property="Focusable" Value="True"/>
        <Setter Property="Margin" Value="95,0,7,0" />
        <Setter Property="Width" Value="110" />
        <Setter Property="Height" Value="35" />
        <Setter Property="Background" Value="{StaticResource LiSABlue}" />
        <Setter Property="Foreground" Value="White" />
        <Setter Property="FontSize" Value="14" />
        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="true">
                <Setter Property="Cursor" Value="Hand"/>
            </Trigger>
        </Style.Triggers>
    </Style>
</ResourceDictionary>